package yang.learn.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import yang.learn.dao.ChatRoomRecordDao;
import yang.learn.entity.ChatRoom;
import yang.learn.entity.ChatRoomRecord;
import yang.learn.service.ChatRoomRecordService;

import java.util.List;

@Service
public class ChatRoomRecordServiceImpl implements ChatRoomRecordService {

    @Autowired(required = false)
    private ChatRoomRecordDao chatRoomRecordDao;

    public void add(ChatRoomRecord chatRoomRecord){
        chatRoomRecordDao.add(chatRoomRecord);
    }
    public void del(ChatRoomRecord chatRoomRecord){
        chatRoomRecordDao.del(chatRoomRecord);
    }
    public void change(ChatRoomRecord chatRoomRecord){
        chatRoomRecordDao.change(chatRoomRecord);
    }
    public ChatRoomRecord query(ChatRoomRecord chatRoomRecord){
        return  chatRoomRecordDao.query(chatRoomRecord);
    }
    public List<ChatRoomRecord> queryAll(ChatRoom chatRoom){
        return  chatRoomRecordDao.queryAll(chatRoom);
    }

}
